package com.cskaoyan.service.goods;

import com.cskaoyan.bean.comment.Comment;
import com.cskaoyan.bean.goods.Goods;
import com.cskaoyan.bean.goods.GoodsComment;
import com.cskaoyan.bo.goodsvo.GoodsCreateBo;
import com.cskaoyan.bo.goodsvo.GoodsUpdateBo;
import com.cskaoyan.vo.goodsvo.Category_CategoryList_Vo;
import com.cskaoyan.vo.goodsvo.GoodsComment_TotalVo;
import com.cskaoyan.vo.goodsvo.GoodsDetail_TotalVo;
import com.cskaoyan.vo.goodsvo.GoodsList_TotalVo;

import java.util.List;
import java.util.Map;


public interface GoodsService {
    GoodsList_TotalVo query(Integer page, Integer limit, String sort, String order, String goodsSn, String name);

    GoodsDetail_TotalVo detail(Integer id);

    Category_CategoryList_Vo catAndBrand();

    void update(GoodsUpdateBo goodsUpdateBo);

    Integer create(GoodsCreateBo goodsCreateBo);

    void delete(Goods goods);

    GoodsComment_TotalVo queryComment(Integer page, Integer limit, String sort, String order, Integer userId, Integer valueId);

    List<GoodsComment> queryComment(Integer page, Integer limit, Byte type, Integer valueId);

    void deleteComment(GoodsComment comment);

    Map<String, Integer> queryCommentCount(Integer valueId, Byte type);

    Comment insertComment(Comment comment);
}
